<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://hotelmanager.com/tags"
        >
<ui:composition>
    <f:view>
        <h:form name="content_form">

            <table width="100%" class="component_class">
                <tr valign="top" >
                    <td align="left" >
                        <h:outputText styleClass="table_headers" value =" #{t:localized('DATE')}: "  />
                    </td>
                    <td align="left"  >
                        <t:calendar value ="#{RoomListFilter.flt.dateFrom}" locale="#{LocaleConf.langCd}" popup="true" datePattern="dd MMM yyyy" />
                    </td>
                    <td align="left" >
                        <h:outputText value =" - "/>
                    </td>
                    <td align="left">
                        <t:calendar value ="#{RoomListFilter.flt.dateTo}" locale="#{LocaleConf.langCd}" popup="true" datePattern="dd MMM yyyy" />
                    </td>
                    <td align="right"><h:outputText styleClass="table_headers" value ="#{t:localized('PLACES')}:"/></td>
                    <td>
                        <h:selectOneMenu style="width:130px;"  value="#{RoomListFilter.flt.places}" styleClass="form_element" >
                            <f:selectItem itemValue="0" itemLabel="#{t:localized('ALL')}"/>
                            <f:selectItems  value="#{t:getListSelectItem(FltReference.roomPlaces,'')}"/>
                        </h:selectOneMenu>
                    </td>

                    <td rowspan="3" align="right" valign="top" ><h:outputText styleClass="table_headers"  value ="#{t:localized('STATUS')}:"/></td>
                    <td rowspan="3">
                        <h:selectManyListbox size="5"   value="#{RoomListFilter.flt.status}"  style="width:165px" styleClass="form_element"  >
                            <f:selectItem itemValue="0" itemLabel="#{t:localized('ALL')}"/>
                            <f:selectItems  value="#{t:getListSelectItem(FltReference.roomStatusRef,'id')}"/>
                            <!--f:selectItem itemValue="1" itemLabel="#{t:localized('FREE')}"/>
                            <f:selectItem itemValue="2" itemLabel="#{t:localized('BUSY')}"/>
                            <f:selectItem itemValue="3" itemLabel="#{t:localized('RESERVED')}"/>
                            <f:selectItem itemValue="4" itemLabel="#{t:localized('END_TERM')}"/-->
                        </h:selectManyListbox>
                    </td>
                </tr>
                <tr>
                    <td colspan ="6"> &nbsp; </td>
                </tr>
                <tr valign="top">
                    <td align="left">
                        <h:outputText styleClass="table_headers" value ="#{t:localized('PRICE')}: "/>
                    </td>
                    <td align="left">
                        <h:inputText value ="#{RoomListFilter.flt.price1}" size="10" style="width:90px" styleClass="form_element"/>
                        <!--f:convertNumber type ="currency"/-->
                    </td>
                    <td align="left">
                        <h:outputText value =" - "/>
                    </td>
                    <td align="left">
                        <h:inputText value ="#{RoomListFilter.flt.price2}" size="10" style="width:90px" styleClass="form_element"/>
                        <!--f:convertNumber type ="currency"/-->
                    </td>
                    <td align="right"><h:outputText styleClass="table_headers" value ="#{t:localized('STYLE')}:"/></td>
                    <td>
                        <h:selectManyListbox size="3"  style="width:130px" value="#{RoomListFilter.flt.style}" styleClass="form_element">
                            <f:selectItem itemValue="0" itemLabel="#{t:localized('ALL')}" />
                            <f:selectItems  value="#{t:getListSelectItem(FltReference.roomStyle,'id')}"/>
                        </h:selectManyListbox>
                    </td>
                </tr>
                <tr>
                    <td colspan ="8" valign="bottom" align="right" >
                        <div class="Button">
                            <h:commandLink value ="#{t:localized('BTN_SRC')}" action="#{RoomListFilter.getRoomList}"/>
                        </div>
                    </td>
                </tr>
            </table>
        </h:form>
    </f:view>
</ui:composition>
</html>